package com.cy.milktea.mapper;

import com.cy.milktea.common.annotation.RunTime;
import com.cy.milktea.pojo.Stock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface StockMapper {

    int insertTest(String values);

    int insert(Stock stock);

    int delete(Integer id);

    int update(Stock stock);

    List<Stock> select(@Param("name") String name,
                       @Param("stockDate")Date stockDate,
                       @Param("sort") String sort);

}
